package com.fight.strive.sys.modules.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fight.strive.sys.modules.rbac.entity.RbacDepartmentRoleEntity;
import com.fight.strive.sys.modules.validator.StriveValid;

public interface RbacDepartmentRoleService extends IService<RbacDepartmentRoleEntity> {

    /**
     * 保存部门与角色信息
     */
    void saveDepartmentRole(@StriveValid RbacDepartmentRoleEntity entity);

    /**
     * 根据角色ID删除部门角色信息
     *
     * @param roleId 角色ID
     */
    void removeByRoleId(Long roleId);

    /**
     * 根据部门ID删除部门角色关联信息
     *
     * @param departmentId 部门ID
     */
    void removeByDepartmentId(Long departmentId);
}
